﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemSize.aspx.cs" Inherits="AlbonWeb.Order.ItemSize" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Item Size</title>
    <script src="../js/ADS.js" type="text/javascript"></script>
    <script src="../js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body onload='sizeInit()'>
    <form id="form1" runat="server" autocomplete="off">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Dealer>>New Order</span>
        </div>
        <table border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" class="content_title">
                    ItemName:<asp:Label ID="itemName" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <table border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="data_darkcolor">
                <td>
                    <!--Measures-->
                    <table class="tb_measures" cellpadding="0" cellspacing="0">
                        <asp:Repeater ID="repItem" runat="server" OnItemDataBound="repItem_ItemDataBound">
                            <ItemTemplate>
                                <tr class="data_lightcolor">
                                    <td>
                                        <b>
                                            <%#Eval("styleName") %></b>
                                        <asp:HiddenField ID='styleid' runat="server" Value='<%#Eval("ID")%>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Repeater ID="repSize" runat="server">
                                            <HeaderTemplate>
                                                <table class="tb_measures" cellpadding="0" cellspacing="0">
                                                    <tr class="data_darkcolor">
                                                        <td class="td_position">
                                                            &nbsp;
                                                        </td>
                                                        <td class="td_body">
                                                            <b>Body</b>
                                                        </td>
                                                        <td class="td_finish">
                                                            <b>Finish</b>
                                                        </td>
                                                    </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr class="measure_data">
                                                    <td class="td_position">
                                                        <%#Eval("itemName")%>
                                                    </td>
                                                    <td class="td_body">
                                                        <input id="bodysize" name='<%#Eval("ID")%>' type="text" <%#int.Parse(Eval("bodyStatus").ToString())==-1?"disabled='disabled'":""%>
                                                            class='decimal in_size <%#(int.Parse(Eval("bodyStatus").ToString())==1)?"must":(int.Parse(Eval("bodyStatus").ToString())==0)?"can":"cannot"%>' />
                                                    </td>
                                                    <td class="td_finish">
                                                        <input id="finishsize" name='<%#Eval("ID")%>' type="text" <%#int.Parse(Eval("finishedStatus").ToString())==-1?"disabled='disabled'":""%>
                                                            class='decimal in_size <%#(int.Parse(Eval("finishedStatus").ToString())==1)?"must":(int.Parse(Eval("finishedStatus").ToString())==0)?"can":"cannot"%>' />
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <!--Measures-->
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hfbody" runat="server" />
                    <asp:HiddenField ID="hffinish" runat="server" />
                </td>
            </tr>
        </table>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="data_lightcolor">
                <td>
                    &nbsp;
                </td>
                <td align="right">
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td>
                </td>
                <td align="right">
                    <asp:Button class="btnNext" ID="ItemSize_btnNext" runat="server" Text="Next" OnClick="btnNext_Click" />
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    &nbsp;
                </td>
                <td align="right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
